home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6882 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  902 b 

  1. Path: redstone.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Tradition or what?
  5. Date: 15 Feb 1996 23:12:48 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4g0elg$mdr@redstone.interpath.net>
  8. NNTP-Posting-Host: mercury.interpath.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Erik van Renselaar writes:
  12.  
  13. : Can anyone tell me what the use is of returning
  14. : the same value for the function and one of the
  15. : output parameters, like it is done in strcpy?
  16.  
  17. Steve Maguire discusses this issue in Writing Solid Code.  The
  18. randomness with which the C library's parameters and return code
  19. (0=success AND failure depending on the function!) conventions happened
  20. are bad because they influence people who look upon them as models.
  21. Reading Writing Solid Code is almost mandatory.
  22.  
  23. Scott
  24.  
  25.